<?php
namespace app\api\controller\v1;

use app\api\model\Category as CategoryModel;
use app\lib\Exception\CategoryException;

class CategoryController extends BaseController
{
    public function getCategoryAll()
    {
        $result = CategoryModel::getAll();
        if(!$result){
            throw new CategoryException();
        }
        return json($result);
    }

    public function getCategoryOne($id)
    {
        
    }
}